package AbstractFactoryPattern;

public class ColorFactory extends AbstractFacoty{
    @Override
    Color getColor(String color) {
        if(color.equals("red")){
            return new Red();
        }else if(color.equals("green")){
            return new Green();
        }else{
            return new DefaultColor();
        }
    }

    @Override
    Shape getShape(String type) {
        return null;
    }
}
